import Home from "../pages/Home";
import Register from "../pages/Register";
import Login from "../pages/Login";
import Search from "../pages/Search";
import Detail from "../pages/Detail";
export default [
  
    //配置以及路由
    {
      name: "home",
      path: "/home",
      component: Home,
      meta: {
        isShowNav: true, //默认显示列表页
      },
    },
    {
      name: "register",
      path: "/register",
      component: Register,
    },
    {
      name: "login",
      path: "/login",
      component: Login,
    },
    {
      name: "search",
      path: "/search",
      component: Search,
    },
    {
      name: "detail",
      path: "/detail/:id",
      component: Detail,
    },
    {
      path: "/",
      component: Home,
      meta: {
        isShowNav: true, //默认显示列表页
      },
    },
 
]